#pragma once
#include "Entity.h"

class Bullet : public Entity
{
protected:
	bool _isActive;
	Vector3 _director;
	Vector3 _startPosition;
	float _speed;

public:
	Bullet() : Entity()
	{
		_isActive = false;
	}

	bool loadFile(char szNfg[], char szVS[], char szFS[]);
	bool loadShader(char szVS[], char szFS[]);
	virtual bool init(Vector3 director, Vector3 startPosition, float speed);

	//inline methods
	inline void setActive(bool isActive) { this->_isActive = isActive; }

	//override from base
	void draw();
	void update(float deltatime);
};